package com.ls.pattern.chain.simple;

public class AgeHandler extends AbstractHandler {

    @Override
    public boolean doHandle(Context context) {
        if (context.getAge() < 18) {
            System.out.println("18岁以下不能注册");
            return false;
        }
        return true;
    }
}
